package com.lianxi.Courses.service;

import com.github.pagehelper.PageInfo;
import com.lianxi.Courses.entity.GoldPoints;
import com.lianxi.Courses.entity.User;
import com.lianxi.Courses.exception.PointErrorException;
import com.lianxi.Courses.exception.RequestParameterErrorException;

import javax.servlet.http.HttpSession;

/**
 * 翔哥
 * 2025年10月13日
 */
public interface GoldPointsService {

    //当前用户id
    PageInfo<GoldPoints> findPage(String id, String pageNo, String pageSize);

    //金币积分的总数
    User findGoldPoints(String id, HttpSession session) throws RequestParameterErrorException;

    //用积分兑换金币
    void pointBuyFind(String id,String point, HttpSession session) throws RequestParameterErrorException, PointErrorException;

}
